﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Domain
{
    [DataContract(Name = "Course", Namespace = "tstNS")]
    public class Course
    {
        [DataMember]
        public int CourseID { get; set; }
        [DataMember]
        public string Title { get; set; }
        [DataMember]
        public string Days { get; set; }
        [DataMember]
        public DateTime Time { get; set; }
        [DataMember]
        public string Location { get; set; }
        [DataMember]
        public int Credits { get; set; }
        [DataMember]
        public Department Department { get; set; }

        [DataMember]
        public ICollection<Enrollment> Enrollments { get; set; }
        [DataMember]
        public ICollection<Person> Persons { get; set; }

    }
}
